package com.yy.service;


import com.yy.mapper.LogMapper;

import com.yy.pojo.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: yy
 * @Date 2021/11/13 19:32
 */
@Component
@Service
public class LogService {
    @Resource
    @Autowired
    private LogMapper logMapper;

    public List<Log> getLogList() {
        return logMapper.getLogList();
    }

    public int deleteLog(int eventid) {
        return logMapper.deleteLog(eventid);
    }
}
